package com.chenyongjing.design.pattern.interpreter.calculate;

/**
 * @Author chen
 * @Date 2022/11/27 14:36
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("result:"+new GPCalculator("10 + 30").callulate());
        System.out.println("result:"+new GPCalculator("10 + 30 - 20").callulate());
        System.out.println("result:"+new GPCalculator("100 * 2 + 400 * 1 + 30").callulate());
    }
}
